// components/w-plus-and-minus-buttons/w-plus-and-minus-buttons.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    count: {
      type: Number,
      value: 0
    },
    minusDisabled: {
      type: Boolean,
      value: false
    },
    plusDisabled: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    handleDecremental() {
      this.triggerEvent("handleDecremental");
    },
    handleIncremental() {
      this.triggerEvent("handleIncremental");
    }
  }
})